﻿// *----------------------------------------------------------------
// Copyright (C) 2017 通通优品
// 版权所有。
// 
// 类名：SendEmailEvent.cs
// 功能描述：TongTongMall.MallWeb.Test
// 
// Create User：jym 2017/02/09
// 
// Edit User：UserName,EditTime
// Describe：Describe
// ----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TongTongMall.Dependecy;
using TongTongMall.Events.Handlers;
using TongTongMall.Json;
using Xunit;

namespace TongTongMall.Tests.Events.CustomEventBus
{
    public class SendEmailEvent : IEventHandler<TaskCompleteEventData>, ITransientDependency
    {
        public void HandleEvent(TaskCompleteEventData eventData)
        {
            System.IO.File.AppendAllText(@"C:\1.txt", eventData.ToJsonString(true));
        }
    }
}
